package com.bling.common.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 留言建议
 * @author BLingSoft
 *
 */

@Entity
@Table(name="T_LEAVE")
public class Leave implements Serializable {

	private static final long serialVersionUID = 2842542869612153562L;

	private Integer id; //主键
	private String niname;//称呼
	private String title; //标题
	private String email; //邮箱
	private String content; //内容
	private String createtime;//留言时间
	private boolean isread;//是否已读 0未读 1已读
	
	public Leave() {
		super();
	}
	public Leave(String niname, String title, String email, String content,
			String createtime, boolean isread) {
		super();
		this.niname = niname;
		this.title = title;
		this.email = email;
		this.content = content;
		this.createtime = createtime;
		this.isread = isread;
	}
	
	@Id
	@GeneratedValue
	@Column
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(length=50)
	public String getNiname() {
		return niname;
	}
	public void setNiname(String niname) {
		this.niname = niname;
	}
	
	@Column(length=50)
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(length=50)
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	@Column(length=200)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	@Column(length=50)
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	
	@Column
	public boolean getIsread() {
		return isread;
	}
	public void setIsread(boolean isread) {
		this.isread = isread;
	}
}
